$(function () {

    var oul=$('#main .content .brandBanner .box ul').eq(0)//获取ul移动的节点
    var index =-1
    $('#main .content .brandBanner span').eq(0).on('click',function () {//当鼠标点击左边按钮的时候
        index++
        oul.animate({'left':140*index},100,function () {
            if(oul.css('left')=='0px'){
                oul.css('left',-1120)
                index=-8
            }
        })

    })


    $('#main .content .brandBanner span').eq(1).on('click',function () {//当鼠标点击左边按钮的时候
        index--
        oul.animate({'left':140*index},100,function () {
            if(oul.css('left')=='-1120px'){
                oul.css('left',0)
                index=0
            }
        })

    })





    //第二次小轮播
    var tomp=-1
    var oul2=$('#main .content .brandBanner .box ul').eq(1)//获取ul移动的节点
    var tomp=-1
    $('#main .content .brandBanner span').eq(2).on('click',function () {//当鼠标点击左边按钮的时候
        tomp++
        oul2.animate({'left':140*tomp},100,function () {
            if(oul2.css('left')=='0px'){
                oul2.css('left',-1120)
                tomp=-8
            }
        })

    })

    $('#main .content .brandBanner span').eq(3).on('click',function () {//当鼠标点击左边按钮的时候
        tomp--
        oul2.animate({'left':140*tomp},100,function () {
            if(oul2.css('left')=='-1120px'){
                oul2.css('left',0)
                tomp=0
            }
        })

    })






    //小轮播效果
    var index01=-1
    var ulNode1=$('#main .content .sportOutdoors .sportLeft .bottom .sportBanner .box .ban ul ')
    $('#main .content .sportOutdoors .sportLeft .bottom .sportBanner .box span ').eq(0).on('click',function () {
        index01++
        ulNode1.animate({'left':112*index01},100,function () {
          if(ulNode1.css("left")=='0px'){
                ulNode1.css('left',-672)
                index01=-6
            }
        })

    })

    $('#main .content .sportOutdoors .sportLeft .bottom .sportBanner .box span ').eq(1).on('click',function () {
        index01--
        ulNode1.animate({'left':112*index01},100,function () {
            if(ulNode1.css("left")=='-672px'){
                ulNode1.css('left',0)
                index01=0
            }
        })

    })




    //小轮播效果
    var index02=-1
    var ulNode2=$('#main .content .fashionableWomensWear .fashionLeft .bottom .fashionBanner .box .ban ul ')

    $('#main .content .fashionableWomensWear .fashionLeft .bottom .fashionBanner .box span ').eq(0).on('click',function () {
        index02++
        ulNode2.animate({'left':112*index02},100,function () {
            if(ulNode2.css("left")=='0px'){
                ulNode2.css('left',-672)
                index02=-6
            }
        })

    })

    $('#main .content .fashionableWomensWear .fashionLeft .bottom .fashionBanner .box span ').eq(1).on('click',function () {
        index02--
        ulNode2.animate({'left':112*index02},100,function () {
            if(ulNode2.css("left")=='-672px'){
                ulNode2.css('left',0)
                index02=0
            }
        })

    })





    //小轮播效果
    var index03=-1
    var ulNode3=$('#main .content .selectedMensWear .selectedLeft .bottom .selectedBanner .box .ban ul ')

    $('#main .content .selectedMensWear .selectedLeft .bottom .selectedBanner .box span ').eq(0).on('click',function () {
        index03++
        ulNode3.animate({'left':112*index03},100,function () {
            if(ulNode3.css("left")=='0px'){
                ulNode3.css('left',-672)
                index03=-6
            }
        })

    })

    $('#main .content .selectedMensWear .selectedLeft .bottom .selectedBanner .box span ').eq(1).on('click',function () {
        index03--
        ulNode3.animate({'left':112*index03},100,function () {
            if(ulNode3.css("left")=='-672px'){
                ulNode3.css('left',0)
                index03=0
            }
        })

    })





    //小轮播效果
    var index04=-1
    var ulNode4=$('#main .content .trendyShoe .trendyLeft .bottom .trendyBanner .box .ban ul ')

    $('#main .content .trendyShoe .trendyLeft .bottom .trendyBanner .box span ').eq(0).on('click',function () {
        index04++
        ulNode4.animate({'left':112*index04},100,function () {
            if(ulNode4.css("left")=='0px'){
                ulNode4.css('left',-672)
                index04=-6
            }
        })

    })

    $('#main .content .trendyShoe .trendyLeft .bottom .trendyBanner .box span ').eq(1).on('click',function () {
        index04--
        ulNode4.animate({'left':112*index04},100,function () {
            if(ulNode4.css("left")=='-672px'){
                ulNode4.css('left',0)
                index04=0
            }
        })

    })





    //小轮播效果
    var index05=-1
    var ulNode5=$('#main .content .fashionBags .bagsLeft .bottom .bagsBanner .box .ban ul ')

    $('#main .content .fashionBags .bagsLeft .bottom .bagsBanner .box span ').eq(0).on('click',function () {
        index05++
        ulNode5.animate({'left':112*index05},100,function () {
            if(ulNode5.css("left")=='0px'){
                ulNode5.css('left',-672)
                index05=-6
            }
        })

    })

    $('#main .content .fashionBags .bagsLeft .bottom .bagsBanner .box span ').eq(1).on('click',function () {
        index05--
        ulNode5.animate({'left':112*index05},100,function () {
            if(ulNode5.css("left")=='-672px'){
                ulNode5.css('left',0)
                index05=0
            }
        })

    })





    //小轮播效果
    var index06=-1
    var ulNode6=$('#main .content .selectedUnderwear .underwearLeft .bottom .underwearBanner .box .ban ul ')

    $('#main .content .selectedUnderwear .underwearLeft .bottom .underwearBanner .box span ').eq(0).on('click',function () {
        index06++
        ulNode6.animate({'left':112*index06},100,function () {
            if(ulNode6.css("left")=='0px'){
                ulNode6.css('left',-672)
                index06=-6
            }
        })

    })

    $('#main .content .selectedUnderwear .underwearLeft .bottom .underwearBanner .box span ').eq(1).on('click',function () {
        index06--
        ulNode6.animate({'left':112*index06},100,function () {
            if(ulNode6.css("left")=='-672px'){
                ulNode6.css('left',0)
                index06=0
            }
        })

    })




    //小轮播效果
    var index07=-1
    var ulNode7=$('#main .content .LovelyChildrensWear .childrenLeft .bottom .childrenBanner .box .ban ul ')

    $('#main .content .LovelyChildrensWear .childrenLeft .bottom .childrenBanner .box span ').eq(0).on('click',function () {
        index07++
        ulNode7.animate({'left':112*index07},100,function () {
            if(ulNode7.css("left")=='0px'){
                ulNode7.css('left',-672)
                index07=-6
            }
        })

    })

    $('#main .content .LovelyChildrensWear .childrenLeft .bottom .childrenBanner .box span ').eq(1).on('click',function () {
        index07--
        ulNode7.animate({'left':112*index07},100,function () {
            if(ulNode7.css("left")=='-672px'){
                ulNode7.css('left',0)
                index07=0
            }
        })

    })




})